package com.rem.aop.annotationAop;

import org.junit.jupiter.api.Test;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @author Rem
 * @date 2023-03-06
 */
public class TestAnoAop {

    @Test
    public void testAdd() {
        ApplicationContext context = new AnnotationConfigApplicationContext(Config.class);
        Calculator calculator = context.getBean(Calculator.class);
        calculator.add(4, 3);
    }
}
